﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using Acaweb.Common;
using System.ServiceModel.Activation;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Acaweb.Servicios.Contracts;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class BitacorasService : IBitacorasService
    {
        Components.IBitacorasService _BitacorasComponent = AppCtx.Resolve<Components.IBitacorasService>();

        public void Create(Bitacoras Bitacora)
        {
            _BitacorasComponent.Insert(Bitacora);
        }

        public List<Bitacoras> GetByParcticante(int IdPracticante)
        {
            return _BitacorasComponent.GetByParcticante(IdPracticante).ToList();
        }
    }
}